package com.neusoft.neuiotms.dcam.common.service;

import java.util.List;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import com.neusoft.bizcore.web.bean.TreeBean;
import com.neusoft.bizcore.web.support.Searchable;
import com.neusoft.neuiotms.dcam.common.dto.LocationDTO;

public interface LocationService {

    List<LocationDTO> findAll();

    Page<LocationDTO> search(Pageable pageable, Searchable searchable);

    LocationDTO create(LocationDTO dto);

    LocationDTO details(Long id);

    void delete(Long id);

    LocationDTO update(Long id, LocationDTO dto);

    List<TreeBean> locationTree();

    List<TreeBean> tree(String belong);

}
